// eslint-disable-next-line no-undef
const routes: MobileRoute[] = [
  {
    path: '/',
    name: 'main',
    redirect: '/home',
    children: [
      {
        path: '/home',
        name: 'home',
        meta: {
          title: '首页',
          useTabbar: true,
          tabbarIndex: 0,
          hideNavLeftArrow: true,
          hideNavbar: true,
        },
      },

      {
        path: '/my',
        name: 'my',
        meta: {
          title: '我的',
          tabbarIndex: 1,
          hideNavLeftArrow: true,
        },
      },
    ],
  },
]

export default routes

const tabbarList = [
  {
    path: '/home',
    text: '首页',
    useCustomIcon: false,
    icon: 'home-o',
  },
  {
    path: '/my',
    text: '我的',
    icon: 'eye-o',
    useCustomIcon: true,
    activeIcon: 'https://fastly.jsdelivr.net/npm/@vant/assets/user-active.png',
    inactiveIcon: 'https://fastly.jsdelivr.net/npm/@vant/assets/user-inactive.png',
  },
]
export { tabbarList }
